package com.zhaiweijia.eurekaconsumerfeign.controller;

import com.zhaiweijia.dto.UserDto;
import com.zhaiweijia.eurekaconsumerfeign.service.UserService;
import com.zhaiweijia.vo.ResultEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {

    @Autowired
    UserService userService;

    @RequestMapping("/user/list")
    public ResultEntity userList(UserDto userDto){
        return userService.getUserList(userDto);
    }

}
